package org.osforce.platform.action;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public abstract class BaseAction extends ActionSupport{

	private static final long serialVersionUID=-7267643838799010751L;

	public BaseAction(){
	}

	protected ServletContext getServletContext() {
		return ServletActionContext.getServletContext();
	}
	
	protected HttpSession getSession() {
		return ServletActionContext.getRequest().getSession();
	}
	
	protected HttpServletRequest getRequest() {
		return ServletActionContext.getRequest();
	}
	
	protected HttpServletResponse getResponse() {
		return ServletActionContext.getResponse();
	}
}
